# modules/address_splitter.py
import re


def split_address(addr):
    match = re.match(r'([^，,]+)[，,]\s*([\d\-]+)[，,]\s*(.+)', str(addr))
    if match:
        return match.group(1), match.group(2), match.group(3)
    return '', '', addr
